package engine.tip.tipItem
{
	import engine.data.ObjectData;
	
	import newx.com.config.StaticIni;
	
	public class LookOverEquipItem extends EquipItem
	{
		public function LookOverEquipItem(dataObject:ObjectData=null, data:Object=null)
		{
			super(dataObject, data);
		}
		override 	internal function getEqNeedLevel():String
		{
			var needlv:String	= _data["NeedLevel"];
			var str:String="";
			if(needlv != null && needlv != "")
			{
				var temp:String				= StaticIni.getSwfLangStr("ItemDes_NeedLevel");
				var tmpStr:String	= "";
				tmpStr				= tmpStr.concat(temp);
				tmpStr				= tmpStr.concat(needlv);
				var userLevel:String	=	data["_currentLevel"];
				if(userLevel!= null && userLevel != "")
				{
					if(int(userLevel)>=int(needlv))
					{
						str				= str.concat(tmpStr);
					}else{
						str				= str.concat("<font color='#E8912E'>"+tmpStr+"</font>");
					}
				}
			}
			if(str)
				return 	str+getChangeLine();
			return ""
		}
	}
}